package com.detection.common.domain.hikvision.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 海康开放平台返回公共类
 * @author LH
 * @date 2022/9/14 16:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result<T> {

    private String code;

    private String msg;

    private T data;

    public boolean success(){
        return code.equals("0");
    }
}
